const http = require("http")


const hostname = "127.0.0.1"
const port = "8888"

const app = http.createServer((req, res) => {
    console.log("res",res)
    res.statusCode = 200
    res.setHeader("Content-Type", "text/plain")
    res.end("Hello World !")
})


app.listen(port, () => {
    console.log(`服务器运行在${hostname}:${port}`)
})
